const model = require('../model/userModel')

class AdminService {

  async showUserInfo(uid) {
    return await model.byId(uid)
  }

  async updateUserInfo(uid, data) {
    return await model.update({ _id: uid }, data)
  }

}

module.exports = new AdminService()